package com.chenbei.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "http-client")
@Data
public class HttpClientProperties {

    //等待时间
    private Integer waitTimeout;

    //连接超时时间
    private Integer connectTimeout;

    //读取超时时间
    private Integer readTimeout;

    //最大连接数
    private Integer maxTotalConnect;

    //每个路由最大连接数
    private Integer maxRouteConnect;

    //最大重试次数
    private Integer retryCount;
}
